package com.jshop.servlet.category;

import java.io.IOException;
import java.util.ArrayList;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.jshop.entity.JSHOP_CATEGORY;
import com.jshop.service.JSHOP_CATE_DAO;

@WebServlet("/backstage/admin_tocateadd")
public class ToCateAdd extends HttpServlet {
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		ArrayList<JSHOP_CATEGORY> catearr =  JSHOP_CATE_DAO.selectAll();
		request.setAttribute("catearr", catearr);
		
		request.getRequestDispatcher("admin_cateadd.jsp").forward(request, response);
	}

}
